<?php
require_once("../core/core.inc");
?>
<head>
<link href="css/main.css" rel="stylesheet" type="text/css" /> 
<SCRIPT LANGUAGE="JavaScript" src="js/ajax.js"></SCRIPT>

</head>
<?php
$p = Utils::params();

include('user-login.inc');

$page = "main";
if(isset($p["page"])){
	$_SESSION["pg"] = $p["page"];
}
if(isset($_SESSION["pg"])){
	$page = $_SESSION["pg"];
}

ob_start();
include($page.".inc");
$txt = ob_get_contents();
ob_end_clean();

echo $txt;

/*
echo "<br>";
if($DEBUG){
	echo "<small>".pagetime()."</small>";
}
*/
?>